package com.example.demo.dto;

import lombok.Data;
import org.springframework.util.DigestUtils;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class SysUserDto {
    private Integer id;
    private String name;
    private String mobile;
    private String email;
    private Integer department;
    private List<Integer> roles;
    private String password = DigestUtils.md5DigestAsHex("1".getBytes()); // 默认密码
    private Integer status = 1;
    private LocalDateTime createTime = LocalDateTime.now();
    private LocalDateTime lastUpdateTime = LocalDateTime.now();
}
